package com.homedroid.dal;

public class User { // Class User

	private String username; // Nickname
	private String passWord;
	private String decodedPassword;
	private MD5 decoder;
	
	public User(String nickname, String password) {
		username = nickname;
		passWord = password;
		decoder = new MD5();
		decodedPassword = decoder.decode(passWord);

	}

	// Getter and Setter

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return decodedPassword;
	}

	public String getPW() {
		return passWord;
	}
}
